package org.jwcloud.project.module.zx.timingSz.controller;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jwcloud.project.module.zx.common.Resp;
import org.jwcloud.project.module.zx.common.repository.RptCommonRepository;
import org.jwcloud.project.module.zx.template.service.RptTemplateService;
import org.jwcloud.project.module.zx.timingSz.service.RptTimingSzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.jw.mid.mm.comm.common.controller.BaseController;
import com.jw.mid.mm.comm.common.controller.CrudController;
import com.jw.mid.mm.comm.common.json.Response;
import com.jw.mid.mm.comm.common.pagination.ListBounds;
import com.jw.mid.mm.comm.common.pagination.ListSlice;
import com.jw.mid.mm.comm.common.pagination.Pagination;
import com.jw.mid.mm.comm.common.service.CrudService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "API - Controlle",
description = "", tags = "timingSz222")
@RestController
@RequestMapping("/rest/rptTimingSz")
public class RptTestController extends BaseController{
	
//	@Autowired
//    private CommonService commonService;
	
//	@Autowired
//	public RptCommonRepository rptCommonRepository;
	
	@Autowired
    private RptTimingSzService rptTimingSzService;

	@GetMapping("queryTaskList_sz11111111111")
    @ApiOperation(value = "任务列表 设置", notes = "主列表  分页")
    @ApiImplicitParams({
    	@ApiImplicitParam(name = "id", value = "id", required = false, dataType = "string", paramType = "query"),
    	@ApiImplicitParam(name = "task_code", value = "task_code", required = false, dataType = "string", paramType = "query"),
    	@ApiImplicitParam(name = "task_name", value = "task_name", required = false, dataType = "string", paramType = "query"),
    })
    public Resp queryTaskList_sz(
    		Pagination pagination, 
    		@RequestParam(required = false) Map<String,String> param
    		){
        return rptTimingSzService.queryTemplateList(pagination, param);
    }
    
	
}